//
//  shoppingCartModel.m
//  giuseppe
//
//  Created by Apple on 15/8/19.
//  Copyright (c) 2015年 GiantUmbrella. All rights reserved.
//

#import "shoppingCartModel.h"

@implementation shoppingCartModel



static shoppingCartModel *_order;

+(shoppingCartModel *)order
{
    @synchronized ([shoppingCartModel class])
    {
        if (_order == nil)
        {
            _order = [[shoppingCartModel alloc] init];
        }
    }
    return _order;
}



+ (instancetype) initWithDicAttributes:(NSDictionary *)dic {
    
    
    shoppingCartModel *tmp = [[shoppingCartModel alloc] init];
    
    
    if (dic) {
        
        
        
        tmp.imgUrl = [dic objectForKey:@"imgUrl"];
        tmp.brief = [dic objectForKey:@"brief"];
        tmp.orderNumber = [dic objectForKey:@"orderNumber"];
        tmp.price = [dic objectForKey:@"price"];
        tmp.amount = [dic objectForKey:@"amount"];
        tmp.amount = [dic objectForKey:@"amount"];
        
    }
    
    
    return tmp;
    
}



@end
